/// 会话模型
class Conversation {
  final String id;
  final String name;
  final String avatar;
  final String customerAvatar;
  final String customerName;
  final String orderType;
  final int unread;
  final bool hasUnread;
  final String lastMessage;
  final String lastTime;
  final String? orderId;

  const Conversation({
    required this.id,
    required this.name,
    required this.avatar,
    required this.customerAvatar,
    required this.customerName,
    required this.orderType,
    this.unread = 0,
    this.hasUnread = false,
    this.lastMessage = '',
    this.lastTime = '',
    this.orderId,
  });

  bool get isUnread => unread > 0;
} 